Java.perform(function () {
    var MiscUtil = Java.use("com.yoloho.libcore.util.MiscUtil");

    MiscUtil.isRooted.implementation = function () {
        return false;
    }

    MiscUtil.isSimulator.implementation = function (ctx) {
        return false;
    }
});

// frida -U -f  com.yoloho.dayima -l  root.js
// frida -UF -l  root.js
// frida -H 127.0.0.1:8877 -l  0_Root_Remove.js -f com.yoloho.dayima